Modification Title: Portal System Addon: User Rank Icons Addon v1.0

Modification Author: John Briggs

Last Updated: 04/18/09

Modification Description:
This modification will provide the ability to add the User Rank Icons hack with the portal just like on the index page.

Required: You must have the User Rank Icons Advanced v1.0 modification installed in order to use this portal addon.

Supported Version: XMB 1.9.8 SP3

Installation Note: Before adding this modification to your forum you should back up all files related to this modification.

License Note: This modification is released under the GPL License. A copy is provided with this software package.

Author Note:
For security purposes, Please Check: http://www.xmbgarage.com for the latest version of this modification.
Downloading this modification from other sites could cause malicious code to enter into your XMB Forum software.
As such, XMB Garage will not offer support for modifications not offered at our web site.

=======================================================================================================================
=======
Step 1:
=======

================
Edit File: portal.php
================

==========
Find Code:
==========

    for($mnum=0; $mnum<$show_total; $mnum++) {
        $pre = $suff = '';

        $online = $member[$mnum];

        $pre = '<span class="status_'.str_replace(' ', '_', $online['status']).'">';
        $suff = '</span>';

================
Replace Code With:
================

        for($mnum=0; $mnum<$show_total; $mnum++) {
            $pre = $suff = $ricon = '';

            $online = $member[$mnum];

            $pre = '<span class="status_'.str_replace(' ', '_', $online['status']).'">';
            $suff = '</span>';
            $ricon = '<img src="./images/ricons/online'.str_replace(' ', '', $online['status']).'.gif" border="0" alt="'.$online['status'].'" />';

==========
Find Code:
==========

        $memtally[] = '<a href="member.php?action=viewpro&amp;member='.rawurlencode($online['username']).'">'.$pre.''.$online['username'].''.$suff.'</a>';

================
Replace Code With:
================

        $memtally[] = $ricon.'<a href="member.php?action=viewpro&amp;member='.rawurlencode($online['username']).'">'.$pre.''.$online['username'].''.$suff.'</a>';

==========
Find Code:
==========

        $pre = $suff = '';
        while($memberstoday = $db->fetch_array($query)) {
            $pre = '<span class="status_'.str_replace(' ', '_', $memberstoday['status']).'">';
            $suff = '</span>';
            $todaymembers[] = '<a href="member.php?action=viewpro&amp;member='.rawurlencode($memberstoday['username']).'">'.$pre.''.$memberstoday['username'].''.$suff.'</a>';
            ++$todaymembersnum;
        }

================
Replace Code With:
================

        $pre = $suff = $ricon = '';
        while($memberstoday = $db->fetch_array($query)) {
            $pre = '<span class="status_'.str_replace(' ', '_', $memberstoday['status']).'">';
            $suff = '</span>';
            $ricon = '<img src="./images/ricons/online'.str_replace(' ', '', $memberstoday['status']).'.gif" border="0" alt="'.$memberstoday['status'].'" />';
            $todaymembers[] = $ricon'<a href="member.php?action=viewpro&amp;member='.rawurlencode($memberstoday['username']).'">'.$pre.''.$memberstoday['username'].''.$suff.'</a>';
            ++$todaymembersnum;
        }

=======================================================================================================================
That's it! Enjoy!
=======================================================================================================================